import { SYMBOLS } from '../../../types/interfaces'

/**
 * 图标工具类
 */
export class IconUtils {
  /**
   * 获取当前季节的图标
   * @returns 季节图标
   */
  static getSeasonIcon(): string {
    const month = new Date().getMonth() + 1
    if (month >= 2 && month <= 4)
      return SYMBOLS.SEASON.SPRING
    if (month >= 6 && month <= 8)
      return SYMBOLS.SEASON.SUMMER
    if (month >= 9 && month <= 11)
      return SYMBOLS.SEASON.AUTUMN
    return SYMBOLS.SEASON.WINTER
  }
}
